//
//  MGCircularProgress.h
//  Mango
//
//  Created by 胡超 on 2016/11/26.
//  Copyright © 2016年 胡超. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class MGCircularProgress;

@protocol MGCircularProgressDelegate <NSObject>
- (void)circularProgressDidCountDownFinish:(MGCircularProgress *)circularProgress;

@end

@interface MGCircularProgress : UIView

@property (nonatomic,assign) float progress;
@property (nonatomic,assign) CGFloat barWidth;
@property (nonatomic,strong) UIColor *progressTintColor;
@property (nonatomic,strong) UIColor *trackTintColor;

@property (nonatomic,assign) NSTimeInterval countDownDuration;
@property (nonatomic,weak) id<MGCircularProgressDelegate> delegate;

- (void)startCountdown;
- (void)stopCountdown;

@end

NS_ASSUME_NONNULL_END
